﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Gpsys.Entity.MSG;
using Gpsys.Web.Business;

namespace Gpsys.Web.Models
{
    public class QueueModel
    {
        public Queue Queue { get; private set; }

        public QueueLogList LogList { get; private set; }

        public QueueXml QueueXml { get; private set; }

        public void LoadQueue(long Id)
        {
            QueueBusiness bs = new QueueBusiness();

            Queue = bs.GetQueue(Id);

            QueueXml = bs.GetQueueXml(Id);

            LogList = bs.GetQueueLogList(Id);
        }
    }
}